gtk4.git
10 years agoHighContrast: remove edge highlight
Jakub Steiner [Tue, 8 Sep 2015 15:22:10 +0000 (17:22 +0200)]
HighContrast: remove edge highlight

https://bugzilla.gnome.org/show_bug.cgi?id=754551

10 years agowidget path: Use gtk_internal_return_if_fail
Matthias Clasen [Tue, 8 Sep 2015 12:07:05 +0000 (08:07 -0400)]
widget path: Use gtk_internal_return_if_fail

10 years agocss style property: Use gtk_internal_return_if_fail
Matthias Clasen [Tue, 8 Sep 2015 12:06:17 +0000 (08:06 -0400)]
css style property: Use gtk_internal_return_if_fail

10 years agocss color: Use gtk_internal_return_if_fail
Matthias Clasen [Tue, 8 Sep 2015 10:15:12 +0000 (06:15 -0400)]
css color: Use gtk_internal_return_if_fail

10 years agoallocated bitmask: Use gtk_internal_return_if_fail
Matthias Clasen [Tue, 8 Sep 2015 10:14:38 +0000 (06:14 -0400)]
allocated bitmask: Use gtk_internal_return_if_fail

10 years agowindow: Use internal more internal getters
Matthias Clasen [Tue, 8 Sep 2015 10:14:07 +0000 (06:14 -0400)]
window: Use internal more internal getters

10 years agoTrivial cleanup
Matthias Clasen [Tue, 8 Sep 2015 10:13:23 +0000 (06:13 -0400)]
Trivial cleanup

10 years agowidget: Use g_param_spec_get_name_quark
Matthias Clasen [Tue, 8 Sep 2015 01:58:34 +0000 (21:58 -0400)]
widget: Use g_param_spec_get_name_quark

10 years agostack: Convert to gtk_container_child_notify_by_pspec
Matthias Clasen [Mon, 7 Sep 2015 22:53:25 +0000 (18:53 -0400)]
stack: Convert to gtk_container_child_notify_by_pspec

10 years agonotebook: Convert to g_object_notify_by_pspec
Matthias Clasen [Mon, 7 Sep 2015 22:53:06 +0000 (18:53 -0400)]
notebook: Convert to g_object_notify_by_pspec

10 years agogrid: Convert to gtk_container_child_notify_by_pspec
Matthias Clasen [Mon, 7 Sep 2015 22:27:32 +0000 (18:27 -0400)]
grid: Convert to gtk_container_child_notify_by_pspec

For the same reasons as g_object_child_notify_by_pspec.

10 years agobox: Convert to gtk_container_child_notify_by_pspec
Matthias Clasen [Mon, 7 Sep 2015 22:27:02 +0000 (18:27 -0400)]
box: Convert to gtk_container_child_notify_by_pspec

For the same reasons as g_object_child_notify_by_pspec.

10 years agoAdd some more child property API
Matthias Clasen [Mon, 7 Sep 2015 22:10:56 +0000 (18:10 -0400)]
Add some more child property API

Add gtk_container_install_child_properties and
gtk_container_child_notify_by_pspec to mirror te corresponding
GObject APIs.

10 years agoscrolled window: Convert to g_object_notify_by_pspec
Matthias Clasen [Mon, 7 Sep 2015 19:55:58 +0000 (15:55 -0400)]
scrolled window: Convert to g_object_notify_by_pspec

10 years agoapp chooser button: Convert to g_object_notify_by_pspec
Matthias Clasen [Mon, 7 Sep 2015 19:55:34 +0000 (15:55 -0400)]
app chooser button: Convert to g_object_notify_by_pspec

10 years agosettings: Convert more fully to g_object_notify_by_pspec
Matthias Clasen [Mon, 7 Sep 2015 19:55:02 +0000 (15:55 -0400)]
settings: Convert more fully to g_object_notify_by_pspec

It turns out that we always have the pspec at hand already.

10 years agoUpdated Norwegian bokmål translation.
Kjartan Maraas [Mon, 7 Sep 2015 18:41:48 +0000 (20:41 +0200)]
Updated Norwegian bokmål translation.

10 years agobuilder: Simplify _gtk_builder_boolean_from_string
Matthias Clasen [Mon, 7 Sep 2015 16:54:16 +0000 (12:54 -0400)]
builder: Simplify _gtk_builder_boolean_from_string

We can do this without calling strlen() or allocating memory.

10 years agobuilder: Move a function
Matthias Clasen [Mon, 7 Sep 2015 16:43:19 +0000 (12:43 -0400)]
builder: Move a function

Move _gtk_builder_boolean_from_string in the same source file
as the other _from_functions.

10 years agobuilder: Minor refactoring
Matthias Clasen [Mon, 7 Sep 2015 16:25:29 +0000 (12:25 -0400)]
builder: Minor refactoring

Keep the GString in PropertyInfo around, instead of throwing it
away and just keeping the char*.

10 years agowidget: Add more inline getters
Matthias Clasen [Mon, 7 Sep 2015 16:23:09 +0000 (12:23 -0400)]
widget: Add more inline getters

Add a getter for state flags, and use it where appropriate.

10 years agosettings: Avoid one case of g_object_notify
Matthias Clasen [Mon, 7 Sep 2015 15:34:41 +0000 (11:34 -0400)]
settings: Avoid one case of g_object_notify

We already have the GParamSpec in hands, lets just use it instead
of looking it up again.

10 years agoAvoid a string copy
Matthias Clasen [Mon, 7 Sep 2015 15:34:08 +0000 (11:34 -0400)]
Avoid a string copy

We have an api to create a quark from a static string, lets use it.

10 years agotreeview: Donate a priv variable to gtk_tree_view_init()
Benjamin Otte [Sat, 5 Sep 2015 23:13:44 +0000 (01:13 +0200)]
treeview: Donate a priv variable to gtk_tree_view_init()

10 years agonotebook: Don't needlessly cast in macros
Benjamin Otte [Sat, 5 Sep 2015 20:36:20 +0000 (22:36 +0200)]
notebook: Don't needlessly cast in macros

That way we disable typechecks done by the compiler and won't notice
when we pass the wrong values to the macro. And that's bad.

10 years agonotebook: Remove unused macros
Benjamin Otte [Sat, 5 Sep 2015 20:34:37 +0000 (22:34 +0200)]
notebook: Remove unused macros

10 years agostylecontext: Remove line that is a no-op
Benjamin Otte [Sat, 5 Sep 2015 04:46:29 +0000 (06:46 +0200)]
stylecontext: Remove line that is a no-op

Creating the transient node will already copy the widget type. So
copying again will not do anything.

10 years agobitmask: Fix broken invert_range() implementation
Benjamin Otte [Mon, 7 Sep 2015 12:31:26 +0000 (14:31 +0200)]
bitmask: Fix broken invert_range() implementation

The speed-up in 7da1f8a1ce145f48b6299fd8be86a64389ff0b0d was wrong in
certain conditions, even though it didn't trigger the existing
testsuite.

New testcase /bitmask/invert_range_hardcoded included.

10 years agoAvoid an extra type check in gdk_screen_get_default
Matthias Clasen [Mon, 7 Sep 2015 07:18:04 +0000 (03:18 -0400)]
Avoid an extra type check in gdk_screen_get_default

Just go through the vfunc directly.

10 years agoMove GtkWidgetPrivate to gtkwidgetprivate.h
Matthias Clasen [Sun, 6 Sep 2015 23:58:03 +0000 (19:58 -0400)]
Move GtkWidgetPrivate to gtkwidgetprivate.h

This lets us use inlined getters for members in there,
avoiding the type checks in the public getters.

10 years agoSpeed up gtk_allocated_bit_mask_invert_range
Matthias Clasen [Mon, 7 Sep 2015 05:55:16 +0000 (01:55 -0400)]
Speed up gtk_allocated_bit_mask_invert_range

It was showing up on profiles and has a comment asking for speed.

10 years agoPlug a leak
Matthias Clasen [Sun, 6 Sep 2015 23:16:43 +0000 (19:16 -0400)]
Plug a leak

A type class reference gotten with g_type_class_ref must be released
with g_type_class_unref, or else we leak.

10 years agomenu button: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 20:10:48 +0000 (16:10 -0400)]
menu button: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agocontainer: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 20:10:31 +0000 (16:10 -0400)]
container: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agoframe: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 19:58:00 +0000 (15:58 -0400)]
frame: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agomenu item: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 19:43:01 +0000 (15:43 -0400)]
menu item: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agotext buffer: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 19:38:14 +0000 (15:38 -0400)]
text buffer: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agotext cell renderer: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 19:31:37 +0000 (15:31 -0400)]
text cell renderer: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agobuilder: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 19:04:19 +0000 (15:04 -0400)]
builder: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agogdk window: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 19:02:34 +0000 (15:02 -0400)]
gdk window: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agodevice: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 19:01:06 +0000 (15:01 -0400)]
device: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agotree view column: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 16:35:12 +0000 (12:35 -0400)]
tree view column: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agogesture single: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:46:38 +0000 (10:46 -0400)]
gesture single: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agoevent controller: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:46:15 +0000 (10:46 -0400)]
event controller: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agoradio button: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:46:00 +0000 (10:46 -0400)]
radio button: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agotoggle button: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:45:33 +0000 (10:45 -0400)]
toggle button: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agostyle context: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:45:03 +0000 (10:45 -0400)]
style context: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agotreeview: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:44:30 +0000 (10:44 -0400)]
treeview: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agoscale: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:43:34 +0000 (10:43 -0400)]
scale: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agorange: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:42:50 +0000 (10:42 -0400)]
range: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agoheader bar: Use g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:41:43 +0000 (10:41 -0400)]
header bar: Use g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agoimage: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 14:40:46 +0000 (10:40 -0400)]
image: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agolist box: Use g_object_notify_by_pspec everywhere
Matthias Clasen [Sun, 6 Sep 2015 14:39:57 +0000 (10:39 -0400)]
list box: Use g_object_notify_by_pspec everywhere

We already have the pspec at hand, so use it.

10 years agoentry completion: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 02:35:22 +0000 (22:35 -0400)]
entry completion: Convert to g_object_notify_by_pspec

This avoid pspec lookup overhead in g_object_notify.

10 years agoentry buffer: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 02:34:51 +0000 (22:34 -0400)]
entry buffer: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agoentry: Convert to g_object_notify_by_pspec
Matthias Clasen [Sun, 6 Sep 2015 02:34:13 +0000 (22:34 -0400)]
entry: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agoapplication: Convert to g_object_notify_by_pspec
Matthias Clasen [Sat, 5 Sep 2015 14:44:27 +0000 (10:44 -0400)]
application: Convert to g_object_notify_by_pspec

This avoid pspec lookup overhead in g_object_notify.

10 years agoprogressbar: Convert to g_object_notify_by_pspec
Matthias Clasen [Sat, 5 Sep 2015 07:59:28 +0000 (03:59 -0400)]
progressbar: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agolabel: Convert to g_object_notify_by_pspec
Matthias Clasen [Sat, 5 Sep 2015 07:58:50 +0000 (03:58 -0400)]
label: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agoadjustment: Convert to g_object_notify_by_pspec
Matthias Clasen [Sat, 5 Sep 2015 07:58:15 +0000 (03:58 -0400)]
adjustment: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agowidget: Convert to g_object_notify_by_pspec
Matthias Clasen [Sat, 5 Sep 2015 06:16:58 +0000 (02:16 -0400)]
widget: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agowindow: Convert to g_object_notify_by_pspec
Matthias Clasen [Sat, 5 Sep 2015 05:27:52 +0000 (01:27 -0400)]
window: Convert to g_object_notify_by_pspec

This avoids pspec lookup overhead in g_object_notify.

10 years agotool button: Use G_DEFINE_TYPE
Matthias Clasen [Sun, 6 Sep 2015 17:16:26 +0000 (13:16 -0400)]
tool button: Use G_DEFINE_TYPE

No need to do this manually.

10 years agoprint backend: Remove an unneeded variable
Matthias Clasen [Sun, 6 Sep 2015 17:15:38 +0000 (13:15 -0400)]
print backend: Remove an unneeded variable

The G_DEFINE_TYPE macros automate the parent_class handling.

10 years agoim module: Remvoe an unneeded variable
Matthias Clasen [Sun, 6 Sep 2015 17:14:55 +0000 (13:14 -0400)]
im module: Remvoe an unneeded variable

The G_DEFINE_TYPE macros automate the parent_class handling.

10 years agotoggle action: Remove an unused variable
Matthias Clasen [Sun, 6 Sep 2015 17:14:40 +0000 (13:14 -0400)]
toggle action: Remove an unused variable

10 years agogdk window: Remove an unneeded variable
Matthias Clasen [Sun, 6 Sep 2015 17:14:01 +0000 (13:14 -0400)]
gdk window: Remove an unneeded variable

The G_DEFINE_TYPE macros automate the parent_class handling.

10 years agogtk-demo: Add a way to launch individual demos
Matthias Clasen [Sun, 6 Sep 2015 02:36:00 +0000 (22:36 -0400)]
gtk-demo: Add a way to launch individual demos

Add a --run option which takes the name of an example and
launches it. Also add a --autoquit option which can be used
to quit after a given number of seconds.

10 years agoUpdated Korean translation
Changwoo Ryu [Sat, 5 Sep 2015 18:59:39 +0000 (03:59 +0900)]
Updated Korean translation

10 years agoUpdated Kazakh translation
Baurzhan Muftakhidinov [Sat, 5 Sep 2015 05:56:51 +0000 (05:56 +0000)]
Updated Kazakh translation

10 years agoUpdated Kazakh translation
Baurzhan Muftakhidinov [Sat, 5 Sep 2015 05:54:29 +0000 (05:54 +0000)]
Updated Kazakh translation

10 years agowayland: Remove an overeager assert
Matthias Clasen [Sat, 5 Sep 2015 03:28:24 +0000 (23:28 -0400)]
wayland: Remove an overeager assert

If we are using gl for drawing, we don't have a shm surface,
so don't assert that we do. Instead, only call shm-specific
apis when they make sense.

This fixes a crash when showing popovers over a GtkGLArea,
as seen in gdkgears.

https://bugzilla.gnome.org/show_bug.cgi?id=754143

10 years agoUpdated Greek translation
Tom Tryfonidis [Fri, 4 Sep 2015 22:33:35 +0000 (22:33 +0000)]
Updated Greek translation

10 years agopopover: Don't inherit style from parent
Benjamin Otte [Thu, 3 Sep 2015 13:59:57 +0000 (15:59 +0200)]
popover: Don't inherit style from parent

Instead, inherit style from toplevel (because that's the default way,
not because it makes lots of sense).

This way, popovers don't inherit the styling from the widget that popped
them up, which is a problem in selected listbox rows, selection-mode
headerbars.
It also doesn't inherit styling where we might want it, like the osd.

But we can only have one of the two things.

10 years agoHighContrast: make linked entries align
Jakub Steiner [Thu, 3 Sep 2015 10:12:01 +0000 (12:12 +0200)]
HighContrast: make linked entries align

- reshuffled the stylesheet to easily allow having a thicker
  border, but decided to keep the 1px borders on entries
  as it makes easier to spot the buttons despite being flat.

https://bugzilla.gnome.org/show_bug.cgi?id=753129

10 years agoflow box: Fix bad children allocation with RTL locales
Rafal Luzynski [Fri, 4 Sep 2015 09:21:08 +0000 (11:21 +0200)]
flow box: Fix bad children allocation with RTL locales

If the position of the children is always relative to the box
then we should not take the allocation of the box into account
when flipping the children for RTL text direction.

This patch also removes unused assignments to child_allocation.

https://bugzilla.gnome.org/show_bug.cgi?id=754559

10 years agotext view: Drop an unused variable
Matthias Clasen [Fri, 4 Sep 2015 06:11:41 +0000 (02:11 -0400)]
text view: Drop an unused variable

10 years agopath bar: Don't use prerendered surfaces
Matthias Clasen [Fri, 4 Sep 2015 06:09:43 +0000 (02:09 -0400)]
path bar: Don't use prerendered surfaces

The current icon handling did not update icons for widget
state changes, causing black-on-black icons in HighContrast.
Instead, use the GIcon.

https://bugzilla.gnome.org/show_bug.cgi?id=753397

10 years agofile system: Add an api to get a GIcon
Matthias Clasen [Fri, 4 Sep 2015 06:08:59 +0000 (02:08 -0400)]
file system: Add an api to get a GIcon

Using prerendered surfaces is not working well when it comes
to state changes, so make the GIcon available.

10 years agotext view: Improve cursor hiding logic
Matthias Clasen [Thu, 3 Sep 2015 17:52:09 +0000 (13:52 -0400)]
text view: Improve cursor hiding logic

Same as we did for the entry in the previous commit.

Previously, we just hid the cursor if a key event was adding text,
but not when you used backspace, or Ctrl-V. Rearrange things so that
we obscure the cursor whenever the buffer contents change while we
are handling key events.

https://bugzilla.gnome.org/show_bug.cgi?id=754535

10 years agoentry: Improve cursor hiding logic
Matthias Clasen [Thu, 3 Sep 2015 17:16:02 +0000 (13:16 -0400)]
entry: Improve cursor hiding logic

Previously, we just hid the cursor if a key event was adding text,
but not when you used backspace, or Ctrl-V. Rearrange things so that
we obscure the cursor whenever the buffer contents change while we
are handling key events.

https://bugzilla.gnome.org/show_bug.cgi?id=754535

10 years agoHC: fix pathbar paddings.
Lapo Calamandrei [Thu, 3 Sep 2015 14:46:36 +0000 (16:46 +0200)]
HC: fix pathbar paddings.

See https://bugzilla.gnome.org/show_bug.cgi?id=753397 for
details.

10 years agoGtkListBox: Allow a NULL callback in bind_model
Timm Bäder [Tue, 1 Sep 2015 08:41:42 +0000 (10:41 +0200)]
GtkListBox: Allow a NULL callback in bind_model

When unsetting the bound model, one can pass NULL, but in that case the
create_func parameter should also be NULL.

10 years agoUpdated Lithuanian translation
Aurimas Černius [Wed, 2 Sep 2015 18:23:14 +0000 (21:23 +0300)]
Updated Lithuanian translation

10 years agoAdwaita: fix documents and the like rubberband.
Lapo Calamandrei [Wed, 2 Sep 2015 17:35:35 +0000 (19:35 +0200)]
Adwaita: fix documents and the like rubberband.

10 years agoAdwaita: add .content-view:hover styling.
Lapo Calamandrei [Wed, 2 Sep 2015 15:23:22 +0000 (17:23 +0200)]
Adwaita: add .content-view:hover styling.

Just to make thumbs in various app hilight on hover.

10 years ago3.17.8
Matthias Clasen [Wed, 2 Sep 2015 05:04:08 +0000 (01:04 -0400)]
3.17.8

10 years agoAvoid some duplicate test names
Matthias Clasen [Wed, 2 Sep 2015 05:52:09 +0000 (01:52 -0400)]
Avoid some duplicate test names

GLib considers these an bug now.

10 years agoplaces view: Avoid a crash in finalize
Matthias Clasen [Wed, 2 Sep 2015 05:50:51 +0000 (01:50 -0400)]
places view: Avoid a crash in finalize

When the places view is finalized before the network loading
is finished, the async operation is cancelled, and the callback
accesses the places view while it is already in a state of
disrepair. Avoid that access.

10 years agoplaces view: Spew less warnings
Matthias Clasen [Wed, 2 Sep 2015 05:28:57 +0000 (01:28 -0400)]
places view: Spew less warnings

When running the testsuite with a local gvfs, we get a 'not supported'
error here, and the g_warning makes the test fail. Avoid that.

10 years agoAdwaita: sync sidebar color vars.
Lapo Calamandrei [Wed, 2 Sep 2015 10:05:22 +0000 (12:05 +0200)]
Adwaita: sync sidebar color vars.

10 years agoAdwaita: scales on selected list rows.
Lapo Calamandrei [Wed, 2 Sep 2015 09:01:08 +0000 (11:01 +0200)]
Adwaita: scales on selected list rows.

10 years agowayland: Don't broadcast selection owner changes
Jonas Ådahl [Thu, 27 Aug 2015 06:59:45 +0000 (14:59 +0800)]
wayland: Don't broadcast selection owner changes

When receiving a selection or when a drag icon enter a window, it was
targeted at a specific window. Lets emit the GDK_OWNER_CHANGE event
only for this window, instead of broadcasting.

Broadcasting has some nasty side effects. For example, if there was n
GdkWindows, and one would for every "owner-change" signal handler
receive n signals about the owner being changed.

An example of where this went a bit out of hand was gnome-terminal,
which added one listener per terminal window. This meant that if
one had m number of terminal windows, each time any one would loose or
gain keyboard focus, O(m^2) owner-change events would be emitted.

https://bugzilla.gnome.org/show_bug.cgi?id=754158

10 years agoGtkTextView: various scroll fixes
Sebastien Lafargue [Sat, 29 Aug 2015 08:49:07 +0000 (10:49 +0200)]
GtkTextView: various scroll fixes

The purpose of this patch is to fix regressions in GtkTextView
scroll behaviours due to commit d138156.
( addition of padding and margins to the view )

Adding some padding is done by, for example, in inspector css tab with:

GtkTextView {
  padding: 10px 10px 10px 10px;
}

and adding margins, by changing one of *-margin properties
( * standing for left/right/top/bottom ) or the corresponding
accessor functions.

Understand that none of these bugs are easy to trigger.
What's happened is that a old and wrong version of the code of the code
( lost in the mean time ) was pushed.

These bugs are best seen with wrap mode set to off.

The commit 8baab8f fix a first regression.

This one is about:

- Cursor going out of the view at line ends instead of being visible
  or triggering the horizontal scroll.

- Padding not displayed correctly
  when moving cursor at beginning/end of lines

- When horizontal scroll position not at left, cursor can make scroll
  by more than one character (you need left padding to see this )

- Moving the cursor arround, the rendered text can be shitted in x or y.
  ( fixed by converting adjustment float values
  to integer before calculations )

  It can be observed by going down with the cursor more
  than the view height then going up

- retval return value of _gtk_text_view_scroll_to_iter wrong in some cases

In addition, this patch re-factor priv->top_border
in screen_dest.y calculation

Of course, all GtkTextView and GtkSourceView based app were impacted
by these bugs ( gedit for example, see bug 754147 )

https://bugzilla.gnome.org/show_bug.cgi?id=753815

https://bugzilla.gnome.org/show_bug.cgi?id=75815

10 years agoplaces sidebar: Disable 'Open' for selected rows
Matthias Clasen [Wed, 2 Sep 2015 02:05:46 +0000 (22:05 -0400)]
places sidebar: Disable 'Open' for selected rows

If the row is selected, it is already opened, so we should not
offer the Open action anymore.

https://bugzilla.gnome.org/show_bug.cgi?id=754410

10 years agodocs: Fix GtkSettings property stanzas
Emmanuele Bassi [Tue, 1 Sep 2015 22:46:40 +0000 (23:46 +0100)]
docs: Fix GtkSettings property stanzas

Otherwise gtk-button-images and gtk-menu-images will not be recognised
as properties.

https://bugzilla.gnome.org/show_bug.cgi?id=754421

10 years agoUpdated Turkish translation
Muhammet Kara [Tue, 1 Sep 2015 17:33:01 +0000 (17:33 +0000)]
Updated Turkish translation

10 years agoAdwaita: use currentColor for scale marks.
Lapo Calamandrei [Tue, 1 Sep 2015 16:52:20 +0000 (18:52 +0200)]
Adwaita: use currentColor for scale marks.

So it should work ok when used in selected items.

10 years agoAdwaita: contemplate selected insensitive items.
Lapo Calamandrei [Tue, 1 Sep 2015 16:43:48 +0000 (18:43 +0200)]
Adwaita: contemplate selected insensitive items.

10 years agoAdwaita: fix GtkPlacesSidebar styling.
Lapo Calamandrei [Tue, 1 Sep 2015 16:14:45 +0000 (18:14 +0200)]
Adwaita: fix GtkPlacesSidebar styling.